package com.cp.service.impl;

import com.cp.dao.ConvictionMapper;
import com.cp.repository.Conviction;
import com.cp.service.ConvictionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ConvictionServiceImpl implements ConvictionService {

	@Autowired
	ConvictionMapper convictionMapper;
	@Override
	public List<Map> getConviction() {
		return convictionMapper.getConviction();
	}

	@Override
	public List<Conviction> getAll() {
		return convictionMapper.getAll();
	}
}
